package com.youlu.campus.service.data;

import com.youlu.campus.entity.OOrderInfo;
import com.youlu.campus.entity.OrderStatistics;
import com.youlu.campus.entity.SubOrderInfo;
import com.youlu.campus.entity.VO.OrderStatisticsQueryV0;
import org.springframework.data.domain.Page;

import java.util.HashMap;
import java.util.List;

public interface OrderStatisticsService {
    void incre(String orderNo);

    List<OrderStatistics> getByActivityId(String ActivityId, Double ratio);

    HashMap<String, List<OrderStatistics>> get(OrderStatisticsQueryV0 req, String userId);

    /**
     * 更新退款的订单
     *
     * @param orderNo
     * @param subOrderInfos
     */
    void updateRefundStatistics(String orderNo, List<OOrderInfo> subOrderInfos);

    Page<HashMap<String, List<OrderStatistics>>> list(OrderStatisticsQueryV0 req);
}
